home *** CD-ROM | disk | FTP | other *** search
- #include <Fonts.h> /*These are "include" statements: The contain the*/
- #include <Events.h> /*actual code for certian functions you willl use.*/
- #include <Menus.h> /*(e.g. If you are going to use windows and windowing */
- #include <Windows.h> /*functions in you program you must first include the*/
- #include <TextEdit.h> /*"windows.h" file.)*/
- #include <Dialogs.h>
-
-
-
- /* Constants */
- #define appleID 128 /* resource IDs/menu IDs for Apple */
- #define fileID 129 /* and File menu*/
-
-
-
- #define appleM 0 /* Index for each menu in myMenus*/
- #define fileM 1 /* (array of menu handles) */
-
- #define menuCount 2 /* Total number of menus */
-
-
-
- /*items in the file menu*/
- #define quitItem 1 /* Quit in the file menu of course. */
-
- /*item in the apple menu*/
- #define aboutMeCommand 1 /* Menu item in apple menu for About Command */
-
-
- /* Globals */
- Rect dragRect; /* Rectangle used to mark bounds for dragging window */
- MenuHandle appleMenu; /* The apple menu problems. */
- EventRecord myEvent; /* The main event loop event. */
- WindowPtr whichWindow; /* A imaginary window used for compairing to*/
- char theChar; /* A place holder for when a key is pressed*/
- Boolean quit; /* Flag to see if we want to quit. */
-
-
-
- /* Prototypes */
- //MW added function argument type
-
- void InitToolBox(void);
- void InitOtherStuff(void);
- void SetUpMenus(void);
- void EventLoop(void);
- void MenuHandler(long int mResult);
- void ShowAboutMeDialog(void);
-